package com.nyist.diseasepreventionserver.converter;

import com.nyist.diseasepreventionserver.dto.HealthDTO;
import com.nyist.diseasepreventionserver.form.HealthForm;

public class HealthFormToHealth {
    public static HealthDTO converter(HealthForm healthForm){
        HealthDTO healthDTO = new HealthDTO();
        healthDTO.setLocationStatus(healthForm.getLocationStatus());
        healthDTO.setHealthStatus(healthForm.getHealthStatus());
        healthDTO.setTemperature(healthForm.getTemperature());
        healthDTO.setContact(healthForm.getContact());
        return healthDTO;
    }
}
